package com.lovo.boot.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Api(tags = "用户视图")
public class UserEntity {
    @ApiModelProperty(value = "编号",hidden = true)
    private  int id;
    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "用户年龄")
    private int age;
    @ApiModelProperty(value = "用户成绩")
    private int grade;

    public UserEntity() {
    }

    public UserEntity(int id, String userName, int age, int grade) {
        this.id = id;
        this.userName = userName;
        this.age = age;
        this.grade = grade;
    }
}
